package com.qf.ssm.pojo;


import org.springframework.util.ObjectUtils;

public class Categories implements CheckNull{

  private Long id;
  private String categoryname;
  private String txcommand;
  private String rxcommand;
  private String commandname;
  private String status;


  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Categories category = (Categories) o;
    return id.equals(category.id);
  }


  @Override
  public boolean isNull(CheckStatus status) {
    return categoryname == null && this.status == null;
  }


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getCategoryname() {
    return categoryname;
  }

  public void setCategoryname(String categoryname) {
    this.categoryname = categoryname;
  }

  public String getTxcommand() {
    return txcommand;
  }

  public void setTxcommand(String txcommand) {
    this.txcommand = txcommand;
  }

  public String getRxcommand() {
    return rxcommand;
  }

  public void setRxcommand(String rxcommand) {
    this.rxcommand = rxcommand;
  }

  public String getCommandname() {
    return commandname;
  }

  public void setCommandname(String commandname) {
    this.commandname = commandname;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }
}
